win32: Don't use API_CALL for SetWindowLong
authorAlexander Larsson <alexl@redhat.com>
Thu, 27 Oct 2011 15:16:46 +0000 (17:16 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:07 +0000 (17:41 +0100)
This can return 0 without it being an error.
Should fix the last issue with bug #142874

gdk/win32/gdkwindow-win32.c

index 35ec5a6545bfce6bdfe6a4d65d8f64c516251e5c..68d58c0cc415e1a3aa116c191456271e4c4eb279 100644 (file)
@@ -3184,9 +3184,9 @@ gdk_win32_window_set_opacity (GdkWindow *window,
   exstyle = GetWindowLong (GDK_WINDOW_HWND (window), GWL_EXSTYLE);
 
   if (!(exstyle & WS_EX_LAYERED))
-    API_CALL (SetWindowLong, (GDK_WINDOW_HWND (window),
-                             GWL_EXSTYLE,
-                             exstyle | WS_EX_LAYERED));
+    SetWindowLong (GDK_WINDOW_HWND (window),
+                   GWL_EXSTYLE,
+                   exstyle | WS_EX_LAYERED);
 
   setLayeredWindowAttributes = 
     (PFN_SetLayeredWindowAttributes)GetProcAddress (GetModuleHandle ("user32.dll"), "SetLayeredWindowAttributes");